package com.dmgis.hndz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 省级预警临时表
 * @TableName ybba02a
 */
@TableName(value ="ybba02a")
@Data
public class Ybba02a implements Serializable {
    /**
     * ID号
     */
    @TableField(value = "ybba02a010")
    private String ybba02a010;

    /**
     * 预警标题
     */
    @TableField(value = "ybba02a020")
    private String ybba02a020;

    /**
     * 预警产品时间
     */
    @TableField(value = "ybba02a030")
    private LocalDateTime ybba02a030;

    /**
     * 预警区域
     */
    @TableField(value = "ybba02a040")
    private String ybba02a040;

    /**
     * 预警颜色
     */
    @TableField(value = "ybba02a050")
    private String ybba02a050;

    /**
     * 预警等级
     */
    @TableField(value = "ybba02a060")
    private String ybba02a060;

    /**
     * 预警所属市
     */
    @TableField(value = "ybba02a070")
    private String ybba02a070;

    /**
     * 预警所属县
     */
    @TableField(value = "ybba02a080")
    private String ybba02a080;

    /**
     * 预警方位
     */
    @TableField(value = "ybba02a090")
    private Object ybba02a090;

    /**
     * 文本信息
     */
    @TableField(value = "ybba02a100")
    private String ybba02a100;

    /**
     * 预警时效
     */
    @TableField(value = "ybba02a035")
    private String ybba02a035;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Ybba02a other = (Ybba02a) that;
        return (this.getYbba02a010() == null ? other.getYbba02a010() == null : this.getYbba02a010().equals(other.getYbba02a010()))
            && (this.getYbba02a020() == null ? other.getYbba02a020() == null : this.getYbba02a020().equals(other.getYbba02a020()))
            && (this.getYbba02a030() == null ? other.getYbba02a030() == null : this.getYbba02a030().equals(other.getYbba02a030()))
            && (this.getYbba02a040() == null ? other.getYbba02a040() == null : this.getYbba02a040().equals(other.getYbba02a040()))
            && (this.getYbba02a050() == null ? other.getYbba02a050() == null : this.getYbba02a050().equals(other.getYbba02a050()))
            && (this.getYbba02a060() == null ? other.getYbba02a060() == null : this.getYbba02a060().equals(other.getYbba02a060()))
            && (this.getYbba02a070() == null ? other.getYbba02a070() == null : this.getYbba02a070().equals(other.getYbba02a070()))
            && (this.getYbba02a080() == null ? other.getYbba02a080() == null : this.getYbba02a080().equals(other.getYbba02a080()))
            && (this.getYbba02a090() == null ? other.getYbba02a090() == null : this.getYbba02a090().equals(other.getYbba02a090()))
            && (this.getYbba02a100() == null ? other.getYbba02a100() == null : this.getYbba02a100().equals(other.getYbba02a100()))
            && (this.getYbba02a035() == null ? other.getYbba02a035() == null : this.getYbba02a035().equals(other.getYbba02a035()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getYbba02a010() == null) ? 0 : getYbba02a010().hashCode());
        result = prime * result + ((getYbba02a020() == null) ? 0 : getYbba02a020().hashCode());
        result = prime * result + ((getYbba02a030() == null) ? 0 : getYbba02a030().hashCode());
        result = prime * result + ((getYbba02a040() == null) ? 0 : getYbba02a040().hashCode());
        result = prime * result + ((getYbba02a050() == null) ? 0 : getYbba02a050().hashCode());
        result = prime * result + ((getYbba02a060() == null) ? 0 : getYbba02a060().hashCode());
        result = prime * result + ((getYbba02a070() == null) ? 0 : getYbba02a070().hashCode());
        result = prime * result + ((getYbba02a080() == null) ? 0 : getYbba02a080().hashCode());
        result = prime * result + ((getYbba02a090() == null) ? 0 : getYbba02a090().hashCode());
        result = prime * result + ((getYbba02a100() == null) ? 0 : getYbba02a100().hashCode());
        result = prime * result + ((getYbba02a035() == null) ? 0 : getYbba02a035().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ybba02a010=").append(ybba02a010);
        sb.append(", ybba02a020=").append(ybba02a020);
        sb.append(", ybba02a030=").append(ybba02a030);
        sb.append(", ybba02a040=").append(ybba02a040);
        sb.append(", ybba02a050=").append(ybba02a050);
        sb.append(", ybba02a060=").append(ybba02a060);
        sb.append(", ybba02a070=").append(ybba02a070);
        sb.append(", ybba02a080=").append(ybba02a080);
        sb.append(", ybba02a090=").append(ybba02a090);
        sb.append(", ybba02a100=").append(ybba02a100);
        sb.append(", ybba02a035=").append(ybba02a035);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}